import java.util.Scanner;

public class MonthTranslator {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int month = 0;

        // 循环以确保输入的数据在 1 到 12 之间
        while (true) {
            System.out.print("请输入 1~12 之间的数字：");
            month = scanner.nextInt();
            if (month >= 1 && month <= 12) {
                break;
            }
            System.out.println("输入无效，请输入有效的数字！");
        }

        // 使用 switch 输出对应的月份英文名称
        String monthName;
        switch (month) {
            case 1:
                monthName = "January";
                break;
            case 2:
                monthName = "February";
                break;
            case 3:
                monthName = "March";
                break;
            case 4:
                monthName = "April";
                break;
            case 5:
                monthName = "May";
                break;
            case 6:
                monthName = "June";
                break;
            case 7:
                monthName = "July";
                break;
            case 8:
                monthName = "August";
                break;
            case 9:
                monthName = "September";
                break;
            case 10:
                monthName = "October";
                break;
            case 11:
                monthName = "November";
                break;
            case 12:
                monthName = "December";
                break;
            default:
                monthName = "";
        }

        System.out.println("对应的月份是：" + monthName);
    }
}
